package com.rinlink.jbcodec.creator;

import com.alibaba.fastjson.JSONObject;
import com.rinlink.jbcodec.transform.BooleanListToBytes;
import com.rinlink.jbcodec.transform.Transform;

import java.util.List;

public class BooleanArrayToBytesCreator extends ArrayToBytesCreator<Boolean> {
    @Override
    protected Transform<byte[]> create(List<Boolean> booleans,  JSONObject attr, JSONObject source) {
        return new BooleanListToBytes(booleans);
    }

}
